package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * AI对话记录表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("ai_conversations")
public class AiConversations implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 消息类型：1-用户提问 2-AI回复
     */
    @TableField("message_type")
    private Byte messageType;

    /**
     * 对话内容
     */
    @TableField("content")
    private String content;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 是否删除：0-未删除 1-已删除
     */
    @TableField("is_deleted")
    private Byte isDeleted;
}
